<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var zhongjiang = prompt('请输入姓名：')
        if (zhongjiang == "刘德华") {
            alert('中奖')
        } else {
            alert('未中奖')
        }
    </script>
</body>
</html>